<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Timeline</title>
    <script src="//cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<style>
.timeline {
    width: 1000px;
    margin: 0 auto;
    position: relative;
    height: 500px;
}
.timeline .item {
    position: relative;
    height: 500px;
    width: 100px;
    float: left;
}
.timeline:before {
    clear: both;
    position: absolute;
    left: 0%;
    top: 50%;
    content: " ";
    width: 100%;
    height: 6px;
    margin: -3px 0 0 0;
    background: #999;
    border-radius: 3px;
}
.timeline .item::after {
    position: absolute;
    left: 50%;
    top: 50%;
    content: " ";
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    background: #999;
    border-radius: 50%;
}
.timeline .item .inner {
    position: absolute;
    left: 50%;
    width: 266px;
    margin-left: -133px;
    font: normal 14px/1.5 'Microsoft Yahei';
}
.inner-inner {
    visibility: hidden;
    position: relative;
    padding: 6px;
    border: 1px solid #999;
    background: #fff;
}
.timeline .odd .inner{
    bottom: 50%;
    padding-bottom: 30px;
}
.timeline .inner:before {
    content: " ";
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 4px;
    margin-left: -2px;
    background: #999;
}
.timeline .even .inner{
    top: 50%;
    padding-top: 30px;
}
.timeline .item.active,
.timeline .item:hover {
    z-index: 1;
}
.timeline .item.active .inner-inner,
.timeline .item:hover .inner-inner {
    visibility: visible;
}
.timeline .item.active::after,
.timeline .item:hover::after {
    background-color: #06e;
}
.timeline .item .inner img {
    width: 100%;
    height: 160px;
    display: block;
}
.inner-date {
    position: absolute;
    text-align: center;
    background: #fff;
    width: 100%;
}
.odd  .inner-date {
    top: 0;
    padding-top: 150px;
}
.even  .inner-date {
    bottom: 0;
    padding-bottom: 150px;
}
.inner-date span {
    padding: 2px 4px;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #999;
}
</style>
</head>
<body>
    <div class="timeline">
        <div class="item odd active">
            <div class="inner">
                <div class="inner-date">
                    <span>2015.1</span>
                </div>
                <div class="inner-inner">
                    <img src="../shiyy.jpg" alt="xiahuxiede" />
                    <span href="#">新闻描述新闻描述</span>
                </div>
            </div>
        </div>
        <div class="item even">
            <div class="inner">
                <div class="inner-date">
                    <span>2015.1</span>
                </div>
                <div class="inner-inner">
                    <img src="../shiyy.jpg" alt="xiahuxiede" />
                    <span href="#">新闻描述新闻描述</span>
                </div>
            </div>
        </div>
        <div class="item odd">
            <div class="inner">
                <div class="inner-date">
                    <span>2015.1</span>
                </div>
                <div class="inner-inner">
                    <img src="../shiyy.jpg" alt="xiahuxiede" />
                    <span href="#">新闻描述新闻描述</span>
                </div>
            </div>
        </div>
        <div class="item even">
            <div class="inner">
                <div class="inner-date">
                    <span>2015.1</span>
                </div>
                <div class="inner-inner">
                    <img src="../shiyy.jpg" alt="xiahuxiede" />
                    <span href="#">新闻描述新闻描述</span>
                </div>
            </div>
        </div>
        <div class="item odd">
            <div class="inner">
                <div class="inner-date">
                    <span>2015.1</span>
                </div>
                <div class="inner-inner">
                    <img src="../shiyy.jpg" alt="xiahuxiede" />
                    <span href="#">新闻描述新闻描述</span>
                </div>
            </div>
        </div>
        <div class="item even">
            <div class="inner">
                <div class="inner-date">
                    <span>2015.1</span>
                </div>
                <div class="inner-inner">
                    <img src="../shiyy.jpg" alt="xiahuxiede" />
                    <span href="#">新闻描述新闻描述</span>
                </div>
            </div>
        </div>
        <div class="item odd">
            <div class="inner">
                <div class="inner-date">
                    <span>2015.1</span>
                </div>
                <div class="inner-inner">
                    <img src="../shiyy.jpg" alt="xiahuxiede" />
                    <span href="#">新闻描述新闻描述</span>
                </div>
            </div>
        </div>
        <div class="item even">
            <div class="inner">
                <div class="inner-date">
                    <span>2015.1</span>
                </div>
                <div class="inner-inner">
                    <img src="../shiyy.jpg" alt="xiahuxiede" />
                    <span href="#">新闻描述新闻描述</span>
                </div>
            </div>
        </div>
        <div class="item odd">
            <div class="inner">
                <div class="inner-date">
                    <span>2015.1</span>
                </div>
                <div class="inner-inner">
                    <img src="../shiyy.jpg" alt="xiahuxiede" />
                    <span href="#">新闻描述新闻描述</span>
                </div>
            </div>
        </div>
        <div class="item even">
            <div class="inner">
                <div class="inner-date">
                    <span>2015.1</span>
                </div>
                <div class="inner-inner">
                    <img src="../shiyy.jpg" alt="xiahuxiede" />
                    <span href="#">新闻描述新闻描述</span>
                </div>
            </div>
        </div>
    </div>
<script>
(function ($) {
    $('.timeline').each(function (item) {
        $(this).children().on('mouseover', function () {
            $(this).addClass('active').siblings().removeClass('active')
        })
    })
})(jQuery);
</script>
</body>
</html>